<template>
<el-table
  :data="this.tableData"
  height="400px"
  max-height="400px"
  size="small"
  row-class-name="row"
  cell-class-name="column"
  
  :highlight-current-row="true"
   fit>
  <el-table-column
    v-for="(item, index) in tableLabel"
    :key="index"
    :prop="item.prop"
    :width="item.width"
    :label="item.label">
  </el-table-column>
</el-table>
</template>
<script>
//依赖elementui
//目前将点选择设值为单个独立选择
export default {
  name: "dynamicTable",
  data: function() {
    return {
    };
  },
  props: {
    tableData: {
      type: Array,
      default:[]
    },
    tableLabel: {
      type: Array,
      default: ()=>{
        return []
      }
    }
  },
}
</script>

